<img ng-src="{{tomedia(item.{name}) || '../core/resource/images/nopic-small.jpg'}}" style="width:40px;height:40px;padding:1px;border:1px solid #ccc;"/>